package com.lifeng.shop.lifengshop.servies;

import com.lifeng.shop.lifengshop.pojo.entry.Product;
import com.lifeng.shop.lifengshop.pojo.entry.Shopcart;

import java.util.List;

/**
 * @Author: LiJiaxun
 * @Date: 2021/8/7 14:05
 */

public interface ShopcartServies {
    int deleteByPrimaryKey(Integer uid);

    int insert(Shopcart record);

    int insertSelective(Shopcart record);

    List<Shopcart> selectByPrimaryKey(Integer uid);

    int updateByPrimaryKeySelective(Shopcart record);

    int updateByPrimaryKey(Shopcart record);

    //  获取用户购物车商品
    List<Shopcart> selectUserShopcartByUid(Integer uid);

    int updateCount(Shopcart record);

    //  根据uid、gid删除购物车内商品
    int deleteByGid(Shopcart record);

    //  检测商品是否已在购物车
    Shopcart checkProductExist(Shopcart record);
}
